//
//  LYDBMigrateStepProtocol.h
//  FMDB
//
//  Created by Kevin Chen on 2019/8/5.
//

#import <Foundation/Foundation.h>
#import "LYDataBaseMigrationAction.h"
NS_ASSUME_NONNULL_BEGIN

@protocol LYDBMigrateStepProtocol <NSObject>

@required
- (NSInteger)completeVersion;

- (void)goUpActionWithCurrentDBVersion:(NSInteger)version progressHandler:(void(^)(NSProgress *progress))progressHandler error:(NSError **)error;
- (void)goDownActionWithError:(NSError **)error;


@end

NS_ASSUME_NONNULL_END
